<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
	<input type="hidden" name="row[id]" value="{$row.id}">
	<div class="form-group">
        <label for="c-industry" class="control-label col-xs-12 col-sm-2">行业</label>
        <div class="col-xs-12 col-sm-8">
			<select name="row[industry]" id="industry" data-rule="required" class="form-control selectpicker">
				<option value="">{:__('--请选择--')}</option>
				{foreach name="industryList" id="item"}
				<option value="{$key}" {if $key==$row.industry}selected{/if}>{$item}</option>
				{/foreach}
			</select>
        </div>
    </div>
	
	<div class="form-group">
        <label for="c-category" class="control-label col-xs-12 col-sm-2">{:__('类别')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[category]" data-rule="required" class="form-control selectpicker">
                <option value="">{:__('--请选择--')}</option>
                {foreach name="categoryList" id="item"}
                <option value="{$key}" {if $key==$row.category}selected{/if}>{$item}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('内容')}:</label>
        <div class="col-xs-12 col-sm-8">
			<textarea name="row[content]" id="c-content" class="form-control" style="height:100px" data-rule="required">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group hide layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('保存')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('取消')}</button>
        </div>
    </div>
</form>
